package com.wht.service;

import com.wht.domain.Music;
import com.wht.mapper.MusicMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author wanghaotian
 * time:2022/11/30,0030 16:45
 * description:
 */

@Service("musicService")
public class MusicServiceImpl implements MusicService {

    @Autowired
    private MusicMapper musicMapper;

    public List<Music> findAll() {
        return musicMapper.selectAll();
    }
}
